<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<div class="div1" position="relative" >
			<div class="div2">
				<p>110</p>	
			</div>
		</div>
	</body>
	
	<script type="text/javascript" src="../../../../js/jquery-1.4.1.js" ></script>
	<script>
		var div =$("p").offsetParent().attr("class");
		console.log(div);
	</script>
</html>
